#pragma once

#ifndef WEBVIEW_H
#define WEBVIEW_H

#include <QtCore>
#include <QtGui>
#include <QtWidgets>

#include "QCefNorWidget.h"

//////////////////////////////////////////////////////////////////////////
//
class WebView : public QCefNorWidget //or QCefExtWidget
{
    Q_OBJECT
public:
    WebView(const QString & strUrl = "", QWidget *parent = nullptr, Qt::WindowFlags flags = Qt::WindowFlags());
    virtual ~WebView();

public slots:
    void onPageBeforePopup(QString url, QString title, int disposition, bool user_gesture);

signals:
    void newWebView(QString strUrl, bool current);
    void newMainWnd(QString strUrl);
};

#endif // WEBVIEW_H
